a=[1,2,3,4,5,6,7,8,9,10]
b=[]
i=0
while i<len(a):
    if a[i]%2==0:
        b.append(a[i])
    i+=1
print(b)
print("--------------------------------")
j=0
while j < len(a):
    if a[j] % 2 != 0:
        a.pop(j)
    j += 1
print(a)
print("--------------------------------")
for i in a:
    if i%2 !=0:
        del a[i]
print(a)



